package cn.laixueit.resource.blog.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author duxiang
 * @date 2024/2/21 10:59
 */

public interface CommonMapper {
    @Select("select code from #{tableName} ORDER BY create_time desc,code desc LIMIT 1")
    String getNewCode(@Param("tableName") String tableName);
}
